package com.itheima.service;

import com.itheima.mapper.OrderMapper;
import com.itheima.pojo.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OrderService {
    @Resource
    private OrderMapper orderMapper;

    public List<Order> findOrderByUserId(String username) {
        List<Order> orderList = orderMapper.findOrderByUserId(username);
        return orderList;
    }
}
